﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DJY.Domain.Entity.WorkFlow
{
    /// <summary>
    /// 节点连接 实体
    /// </summary>
    public class WFNodeLinkEntity
    {
        /// <summary>
        /// 连线id
        /// </summary>
        [Key]
		[StringLength(36)]
    	public string Id
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 说明内容
        /// </summary>
		[StringLength(100)]
    	public string Text
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// x,y
        /// </summary>
		[StringLength(100)]
    	public string TextPosition
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 类型：0工作流
        /// </summary>
    	public int LinkType
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 开始节点
        /// </summary>
		[StringLength(36)]
    	public string StartNode
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 结束节点
        /// </summary>
		[StringLength(36)]
    	public string EndNode
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 条件表达式
        /// </summary>
		[StringLength(500)]
    	public string Condition
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 添加时间
        /// </summary>
    	public DateTime F_CreateTime
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 添加人
        /// </summary>
		[StringLength(36)]
    	public string F_CreateUser
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// Left,Top,Position
        /// </summary>
		[StringLength(100)]
    	public string StartPosition
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// Left,Top,Position
        /// </summary>
		[StringLength(100)]
    	public string EndPosition
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 样式，css样式格式多个;分隔（键:值）
        /// </summary>
		[StringLength(1000)]
    	public string Style
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 流程ID，冗余字段
        /// </summary>
		[StringLength(36)]
    	public string WFID
    	{
    		get;
    		set;
    	}
        
    }
}
